<template>
	<view class="content">
		<view class="logo text-area">
			<text class="title">工程项目app若依基础框架</text>
		</view>
	</view>
</template>

<script>
	// 引入webSocket文件
	import {
		initWebSocket,
	} from '@/utils/webSocket.js';
	// 引入配置文件
	import config from "@/config.js";
	export default {
		onLoad: function() {},
		onReady() {
			let _this = this
			// 接收WebSocket消息
			initWebSocket(_this, `${config.webSocketUrl}/resource/websocket`)
		},
		onUnload() {
			// 页面销毁时关闭socket链接
			uni.closeSocket()
		},
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {	
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>